import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public abstract class list extends Main {
    ArrayList<String> list = new ArrayList<String>();

    void Test() {
        String textInFileWork = textInFile;
        int numberTrimInTextInFile = textInFileWork.split(" ").length;
        for (int i = 0; i < numberTrimInTextInFile; i++) {
            list.add(textInFileWork.substring(0, textInFileWork.indexOf(" "))); // list add substring first word.
            textInFileWork = textInFileWork.substring(textInFileWork.indexOf(" ") + 1); // delete first word and return all record.
        }
        findElement("Cat");
        removeElement("Cat");
        setElement("Cat");
        System.out.println("first list " + list);
        System.out.println("<3 " + buildListFromLetterLess3());
        System.out.println("gl " + buildListFromWordHaveGL());
    }


    abstract void findElement(String findElenents);

    abstract void removeElement(String removeElements);

    abstract void setElement(String setElements);

    abstract ArrayList buildListFromLetterLess3();

    abstract ArrayList buildListFromWordHaveGL();
}
